<?
  include("com/website_config.php");
  $pathurltrue=__FILE__;
  $pathurl=basename($pathurltrue,".php");
  	$PageSize = 12 ;             //每页显示记录数
	$StartRow = 0;             //指针在数据库的初始位置
						   //获取需要显示的页数，由用户提交
	$getpage=(int)$_GET['PageNo'];
	if(empty($getpage)){        //如果为空，则表示第1页
	if($StartRow == 0){
	$PageNo = $StartRow + 1;    //设定为1
	}
	}else{
	$PageNo = (int)$_GET['PageNo'];         //获得用户提交的页数
	$StartRow = ($PageNo - 1) * $PageSize;  //获得开始显示的记录编号
	}
	
	if($PageNo % $PageSize == 0){
	$CounterStart = $PageNo - ($PageSize - 1);
	}else{
	$CounterStart = $PageNo - ($PageNo % $PageSize) + 1;
	}
	//显示页码的最大值
	$CounterEnd = $CounterStart + ($PageSize - 1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>婚庆租车-<? echo $title;?></title>
<link rel="shortcut icon" href="/favicon.ico"/>
<link href="css/css.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="http://www.ashlybus.com/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?429d331d02551c5c42fbfb2982cfcf64"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script>
<style>
    .carlist li{
        position: relative;
    }
   .carlist li>div{
        position: absolute;
        right:20px;
    }
   .carlist li>div p{
        float:right;
        margin:0 10px;
    }
</style>
</head>

<body>
<? include("top.php");?>

<div class="jiange"></div>
<div class="nowplace">当前位置：<span><a href="/">首页</a></span><span>&nbsp;>&nbsp;</span><span><a href="search.php">婚庆租车</a></span></div>

<div class="jiange"></div>
<div class="warp">
     <div class="liuchengbox">
          <ul>
              <li>
                 <div class="lc1 fl"><img src="images/1.jpg" /></div> 
                 <div class="lc2 fl">
                     <p class="lctit">选择车辆</p>
                     <p class="lctext">用户根据需求在网站选择合适车辆</p>
                </div>
              </li>
              <li>
                 <div class="lc1 fl"><img src="images/2.jpg" /></div> 
                 <div class="lc2 fl">
                     <p class="lctit">咨询报价</p>
                     <p class="lctext">根据客户要求，确认租车费用</p>
                </div> 
              </li>
              <li>
                 <div class="lc1 fl"><img src="images/3.jpg" /></div> 
                 <div class="lc2 fl">
                     <p class="lctit">提交订单</p>
                     <p class="lctext">签订《租车协议书》，传真：025-58836185<br />
                     </p>
                </div> 
              </li>
              <li>
                 <div class="lc1 fl"><img src="images/4.jpg" /></div> 
                 <div class="lc2 fl">
                     <p class="lctit">支付车款</p>
                     <p class="lctext">调度员确认费用，安排车辆及司机</p>
                </div> 
              </li>
              <li>
                 <div class="lc1 fl"><img src="images/5.jpg" /></div> 
                 <div class="lc2 fl">
                     <p class="lctit">评价服务</p>
                     <p class="lctext">用车结束填写满意度调查表</p>
                </div> 
              </li>
          </ul>
          <div class="cl"></div>
     </div>    
</div>

<div class="jiange"></div>
<div class="warp">
  <div class="carlist">
    <ul>
        <?
            $sql1="select * from car_nav group by car_brand";
            $sql2="select * from car_nav group by car_brand LIMIT $StartRow,$PageSize";
            $sql_test="select * from car_nav group by car_brand LIMIT 1,5";
             $hc=array();
             $TRecord= $db->query($sql1);
             $record=$db->query($sql2);
//             $rs1=mysql_num_rows($TRecord);
//             获取总记录数
             $RecordCount=mysql_num_rows($TRecord);
             if($RecordCount==""){
                 echo"暂时还没有信息!";
             }else{
                $MaxPage = $RecordCount % $PageSize;
                  if($RecordCount % $PageSize == 0){
                     $MaxPage = $RecordCount / $PageSize;
                  }
                  else{
                  }
                  $MaxPage = ceil($RecordCount / $PageSize);
                  $i = 1;
                while($array=mysql_fetch_array($record))
                    {
                        $bil = $i + ($PageNo-1)*$PageSize;
                        $hc[]= $array;
//            $sql1="select * from car_nav group by car_brand";
////            $car_brand=$array[];
////            $sql2="select * form car_nav where car_brand=$car_brand"
//            $hc=array();
//            $car_nav= $db->query($sql1);
//            $rs=mysql_num_rows($car_nav);
//            if($rs==""){
//                    echo"暂时还没有信息!";
//            }
//            else
//            {
//                while($array=mysql_fetch_array($car_nav))
//                {
//                    $hc[]= $array;
        ?>
        <li>
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tbody>
                <tr>
                    <td width="310" align="center">
                        <span>
                            <a href="hqzc_details.php?car_brand=<? echo $array['car_brand'];?>">
                                <img src="images/hc/<? echo $array['car_img'];?>" width="260" height="174">
                            </a>
                        </span>
                        <br>
                        <div style="color:#0099FF; width:210px; height:25px; text-align:center">点击图片查看车辆详情</div>
                    </td>
                    <td valign="top">
                        <div class="carname"><?echo $array['car_brand'];?></div>

                        <div class="div01">
                            <p style="white-space: normal;">
                                <strong>品牌种类：</strong><? echo $array['car_desc'];?>
                            </p>
                            <p style="white-space: normal;">
                                <strong>报价请电联：</strong>18120116637
                            </p>
                            <p style="white-space: normal;">
                                <strong>座位险:</strong>50 万元&nbsp;&nbsp;&nbsp; &nbsp;<strong>座位数:</strong>4+1 座（含司机及导游副座位）&nbsp;&nbsp;&nbsp;
                                <strong>车况等级：</strong>
                                <img src="http://ashlybus.com/ueditor/php/upload/image/20161110/1478718306850193.jpg" alt="1478718306850193.jpg">
                                <img src="http://ashlybus.com/ueditor/php/upload/image/20161110/1478718306850193.jpg" alt="1478718306850193.jpg">
                                <img src="http://ashlybus.com/ueditor/php/upload/image/20161110/1478718306850193.jpg" alt="1478718306850193.jpg">
                                <img src="http://ashlybus.com/ueditor/php/upload/image/20161110/1478718306850193.jpg" alt="1478718306850193.jpg">
                                <img src="http://ashlybus.com/ueditor/php/upload/image/20161110/1478718306850193.jpg" alt="1478718306850193.jpg">
                            </p>
                            <p style="white-space: normal;">
                                <strong>车型特点：</strong>&nbsp;外观飘逸，动力充足，空间大，噪音小，坐感舒适，安全性高，适合婚车用车<br>
                            </p>
                            <p>
                            <br>
                            </p>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
             <div>
                <p class="liuyan"><a href="guestbook.php">在线预约</a></p>
                <p class="liuyan"><a href="javascript:$('#nb_icon_wrap').click();">在线咨询</a></p>
            </div>
        </li>
        <?
            $i++;
                }
            }
        ?>

    </ul>
  </div>
  <div class="page">

  </div>

</div>
<? include("foot.php");?>
</body>
</html>
